Fix #152760, Christian Persch:
authorMatthias Clasen <mclasen@redhat.com>
Thu, 16 Sep 2004 19:09:29 +0000 (19:09 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 16 Sep 2004 19:09:29 +0000 (19:09 +0000)
2004-09-16  Matthias Clasen  <mclasen@redhat.com>

Fix #152760, Christian Persch:

* gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't free
private data.
(gtk_about_dialog_set_translator_credits): Recommend the msg
id translator-credits.
(display_credits_dialog): Show translator credits if they're
translated, not if they're untranslated.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkaboutdialog.c

index a9e79245849891a7fe9e2aab60c1317583ede75c..18175473e527051e166c0138ed237e05a6bcd702 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2004-09-16  Matthias Clasen  <mclasen@redhat.com>
+
+       Fix #152760, Christian Persch:
+       
+       * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't free
+       private data.
+       (gtk_about_dialog_set_translator_credits): Recommend the msg
+       id translator-credits.
+       (display_credits_dialog): Show translator credits if they're
+       translated, not if they're untranslated.
+
 Thu Sep 16 02:07:56 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * docs/tools/widgets.c (create_icon_view): load images at normal
index a9e79245849891a7fe9e2aab60c1317583ede75c..18175473e527051e166c0138ed237e05a6bcd702 100644 (file)
@@ -1,3 +1,14 @@
+2004-09-16  Matthias Clasen  <mclasen@redhat.com>
+
+       Fix #152760, Christian Persch:
+       
+       * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't free
+       private data.
+       (gtk_about_dialog_set_translator_credits): Recommend the msg
+       id translator-credits.
+       (display_credits_dialog): Show translator credits if they're
+       translated, not if they're untranslated.
+
 Thu Sep 16 02:07:56 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * docs/tools/widgets.c (create_icon_view): load images at normal
index a9e79245849891a7fe9e2aab60c1317583ede75c..18175473e527051e166c0138ed237e05a6bcd702 100644 (file)
@@ -1,3 +1,14 @@
+2004-09-16  Matthias Clasen  <mclasen@redhat.com>
+
+       Fix #152760, Christian Persch:
+       
+       * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't free
+       private data.
+       (gtk_about_dialog_set_translator_credits): Recommend the msg
+       id translator-credits.
+       (display_credits_dialog): Show translator credits if they're
+       translated, not if they're untranslated.
+
 Thu Sep 16 02:07:56 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * docs/tools/widgets.c (create_icon_view): load images at normal
index a9e79245849891a7fe9e2aab60c1317583ede75c..18175473e527051e166c0138ed237e05a6bcd702 100644 (file)
@@ -1,3 +1,14 @@
+2004-09-16  Matthias Clasen  <mclasen@redhat.com>
+
+       Fix #152760, Christian Persch:
+       
+       * gtk/gtkaboutdialog.c (gtk_about_dialog_finalize): Don't free
+       private data.
+       (gtk_about_dialog_set_translator_credits): Recommend the msg
+       id translator-credits.
+       (display_credits_dialog): Show translator credits if they're
+       translated, not if they're untranslated.
+
 Thu Sep 16 02:07:56 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * docs/tools/widgets.c (create_icon_view): load images at normal
index 4f8834e257badfac3e817b1d064276a0a67ba05d..9f8ca60701f2d56ddc78541d9974cb21d23a5fd2 100644 (file)
@@ -396,9 +396,6 @@ gtk_about_dialog_finalize (GObject *object)
   g_strfreev (priv->documenters);
   g_strfreev (priv->artists);
 
-  g_free (priv);
-  about->private_data = NULL;
-
   G_OBJECT_CLASS (gtk_about_dialog_parent_class)->finalize (object);
 }
 
@@ -1166,11 +1163,11 @@ gtk_about_dialog_get_translator_credits (GtkAboutDialog *about)
  * Using gettext(), a simple way to achieve that is to mark the
  * string for translation:
  * <informalexample><programlisting>
- *  gtk_about_dialog_set_translator_credits (about, _("translator_credits"));
+ *  gtk_about_dialog_set_translator_credits (about, _("translator-credits"));
  * </programlisting></informalexample>
- * It is a good idea to use the customary msgid "translator_credits" for this
+ * It is a good idea to use the customary msgid "translator-credits" for this
  * purpose, since translators will already know the purpose of that msgid, and
- * since #GtkAboutDialog will detect if "translator_credits" is untranslated
+ * since #GtkAboutDialog will detect if "translator-credits" is untranslated
  * and hide the tab.
  *
  * Since: 2.6
@@ -1689,9 +1686,10 @@ display_credits_dialog (GtkWidget *button,
   if (priv->documenters != NULL)
     add_credits_page (about, notebook, _("Documented by"), priv->documenters);
     
+  /* Don't show an untranslated gettext msgid */
   if (priv->translator_credits != NULL &&
-      !strcmp (priv->translator_credits, "translator_credits") &&
-      !strcmp (priv->translator_credits, "translator-credits")) 
+      strcmp (priv->translator_credits, "translator_credits") &&
+      strcmp (priv->translator_credits, "translator-credits")) 
     {
       gchar *translators[2];